import axios from './axios'

const http = axios()

export default {
    get(url, params, header){
        return http.get(url, {
            params,
            header
        })
    },
    post(url, params, header){
        return http.post(url, params, header)
    },
    delete(url, params, header){
        return http.delete(url, {
            params,
            header
        })
    },
    put(url, params, header){
        return http.put(url, params, header)
    }
}